const app = getApp()
var progressNum=0;
Page({

  /**
   * 页面的初始数据
   */
  data: {
    itemnum: 253423231212,
    symptoms: "",
    name: "皮皮仓",
    age: 24,
    sex: "男",
    date: "2020-09-13 12:45",
    idcard: 422807188713872334,
    tel: 1213132424242,
    pathology: "头晕、咳嗽、浑身无力、要吃六味地黄丸才行！",//症状
    result: "季节性感冒",//诊断
    tongue:"无异象",//舌象
    allergy:"暂无",//过敏史
    price: 1000000,
    diseases:[
      {
        symptoms:"症状",
        reson:"头晕、咳嗽、浑身无力、要吃六味地黄丸才行！"
      },
   ],
   pro:0

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that=this;
    var timepro=setInterval(function(){
      progressNum++;
      that.setData({
        pro: progressNum,
      })

    },20)
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    var that = this;
    this.setData({
      itemnum: app.globalData.itemno,
      symptoms: app.globalData.symptoms
    });
  },
  /**
   * 填写处方单
   */
  filltheprescriptions:function(){
    wx.navigateTo({
      url: '../../fillprescriptionform/fillprescriptionform',
    })
  }

})